package wqh.pojo;


import wqh.domain.Channel;

public class ChannelCover {

    private Integer id;
    private String name;
    private String ip;
    private Byte channel;
    private Float low;
    private Float high;
    private Byte type;
    private String unit;
    private String geo;

    public ChannelCover(Channel c, String geo)
    {
        this.id = c.getId();
        this.name = c.getName();
        this.ip = c.getIp();
        this.channel = c.getChannel();
        this.low = c.getLow();
        this.high = c.getHigh();
        this.type = c.getType();
        this.unit = c.getUnit();
        this.geo = geo;
    }

    @Override
    public String toString() {
        return "ChannelCover{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                ", channel=" + channel +
                ", low=" + low +
                ", high=" + high +
                ", type=" + type +
                ", unit='" + unit + '\'' +
                ", geo='" + geo + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Byte getChannel() {
        return channel;
    }

    public void setChannel(Byte channel) {
        this.channel = channel;
    }

    public Float getLow() {
        return low;
    }

    public void setLow(Float low) {
        this.low = low;
    }

    public Float getHigh() {
        return high;
    }

    public void setHigh(Float high) {
        this.high = high;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getGeo() {
        return geo;
    }

    public void setGeo(String geo) {
        this.geo = geo;
    }
}
